number of good ways to split a string